var server = require("./server.js");
var router = require("./router.js");
var requestHandlers = require("./requestHandlers.js");//可以不写js后缀

//添加处理程序到路径的映射
var handle = {};

handle["/start"] = requestHandlers.start;
handle["/upload"] = requestHandlers.upload;
handle["/topoData"] = requestHandlers.showTopo;
handle["/simulation/start"] = requestHandlers.simulationStart;

server.start(router.route, handle);
